<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="shortcut icon" href="../img/favicon.ico" >
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<link rel="stylesheet" href="../css/bootstrap-responsive.css">
	<link rel="stylesheet" href="../css/docs.css">
	
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
	  <style type="text/css">
		body{
			background:url(../img/b.png);
			
		}
		
	</style>
	
</head>
<body class="body">
	<% pageContext.setAttribute("left", "idea"); %>
	<%@ include file="include/top.jsp" %>
	
	
	<div class="container">
	  <div class="row">
		<%@ include file="include/left.jsp" %>
		<div class="span9">
			<h1 style="font-size:25px;"><a href="goidea.jspx"><i class="icon icon-file"></i>想法</a>／<span style="color:#ff7400">想法详细</span></h1>
          <hr/>
			<div class="wall">
				  <div class="page-header">
					<h3>${idea.ideatitle }&nbsp;&nbsp;<small>${idea.user.username }发布于 ${idea.createtime }</small></h3>
				  </div>
				 
				  <p>${idea.content }</p>
				  <br/>
				   <form action="saveideareplay.jspx" method="post">
				   <input type="hidden" value="${idea.id }" name="id"/>
				  	<textarea rows="4" cols="5" class="span6" name="text">想说点什么呢？</textarea><a href="goidea.jspx" style="margin-left:50px;">←返回想法列表</a><br/>
				  	
				  	<button type="submit" class="btn btn-primary" style="margin-left:500px;">评论</button>
				  </form>
				  <span><h3 style="display:inline;">评论列表：</h3>-----------------------------------------------------------------------------------------------------------------------------------------</span>
				  <div style="margin-top:20px;"></div>
				  
				  <c:choose>
				  	<c:when test="${empty ideareplay }">
				  		<span style="color:red;font-size:16px;">想法还没有任何的评论。。赶紧来留下脚丫子吧。。。</span>
				  	</c:when>
				  	<c:otherwise>
				  		
				  	</c:otherwise>
				  </c:choose>
				  <c:forEach items="${ideareplay }" var="s">
				  		<blockquote>
							  <div style="display:inline;width:100px;float:left">
							  		<img src="showimg.img?n=${s.user.pic }" width="60" height="60" style="display:inline"/>
							  		<br/>&nbsp;&nbsp;&nbsp;&nbsp;${s.user.username }
							  </div>
							  <div style="display:inline;float:left"><p style="font-size:16px;line-height:1.5;display:inline">${s.content }</p></div>
							  <div style="clear:both;"></div>
							  <small style="margin-left:450px;margin-top:15px;">${s.user.username }发布于 ${s.viewcreatetime }</small>
						</blockquote>
				  </c:forEach>
				  		
				  
				
				
			</div>
		</div>
	  </div>
	</div>
</body>
</html>